package com.zmm.zebulon.module.member.biz.api.config;

import com.zmm.zebulon.module.member.api.api.config.MemberConfigApi;
import com.zmm.zebulon.module.member.api.api.config.dto.MemberConfigRespDTO;
import com.zmm.zebulon.module.member.biz.convert.config.MemberConfigConvert;
import com.zmm.zebulon.module.member.biz.service.config.MemberConfigService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;

/**
 * description: 用户配置 API 实现类
 *
 * @author zebulon
 * package com.zmm.zebulon.module.member.biz.api.config
 * name: MemberConfigApiImpl
 * date 2024/1/10 21:45
 */
@Service
@Validated
public class MemberConfigApiImpl implements MemberConfigApi {

    @Resource
    private MemberConfigService memberConfigService;

    @Override
    public MemberConfigRespDTO getConfig() {
        return MemberConfigConvert.INSTANCE.convert01(memberConfigService.getConfig());
    }

}
